import 'package:flutter/material.dart';
import 'package:flutter_demo_2025_1/pages/home_page.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return ScreenUtilInit(
      designSize: const Size(360, 690),
      minTextAdapt: true,
      splitScreenMode: true,
      builder: (_, child) {
        return MaterialApp(
          title: 'Street Workout',
          theme: ThemeData(
            // colorScheme: ColorScheme.fromSeed(seedColor: Color(0xFF1890ff)),
            colorScheme: ColorScheme.fromSeed(seedColor: Colors.blueGrey),
            useMaterial3: true,
          ),
          home: child,
        );
      },
      child: const MyHomePage(title: '分享列表'),
    );
  }
}


